[ Mega Script Archive ] [ Frequently Asked Questions ] [ FormMail ]

The redirect command won't work.

  • Short Answer:

    There's a bug.

    Long Answer:

    When the code was written, I made it check for basic syntax of a URL before sending the user there, so it made sure that the URL started with http://. If your URL does not start with that, you will either have to change the redirect URL so that it does, or modify the script. If you wish to modify the script, open up FormMail and find the line which looks like:

           if ($CONFIG{'redirect'} =~ /http\:\/\/.*\..*/) {

    That is line 204 in the standard distribution. Simply change it to read:

           if ($CONFIG{'redirect'}) {

    and it should then work for any URL or URI you place in the redirect form field.


[ Mega Script Archive ]